import {createApp, ref} from "vue"
import Modal from "./modal.vue"

export default  {
  install(app, content){
    let modal =  createApp(Modal,{content});
    let DIV =  document.createElement("div");
    DIV.setAttribute("class","modal-wrapper");
    let instance = modal.mount(DIV)
    document.body.appendChild(instance.$el);
    app.config.globalProperties.$modal = instance;
  },

}